-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client: support to get all keyspaces #6793
Conversation
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Hi @ystaticy. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
/test build |
@ystaticy: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -153,3 +155,35 @@ func (c *client) UpdateKeyspaceState(ctx context.Context, id uint32, state keysp | |||
|
|||
return resp.Keyspace, nil | |||
} | |||
|
|||
// GetAllKeyspaces get all keyspaces metadata. | |||
func (c *client) GetAllKeyspaces(ctx context.Context, startID uint32, limit uint32) ([]*keyspacepb.KeyspaceMeta, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If replace WatchKeyspaces
with GetAllKeyspaces
, will it cost too much? Do we need to use watch loop in server?
/ok-to-test |
/test build |
/retest |
Signed-off-by: ystaticy <[email protected]>
/test |
@ystaticy: The
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
Signed-off-by: ystaticy <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #6793 +/- ##
==========================================
- Coverage 74.25% 74.17% -0.09%
==========================================
Files 413 413
Lines 43399 43410 +11
==========================================
- Hits 32225 32198 -27
- Misses 8293 8334 +41
+ Partials 2881 2878 -3
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: ystaticy <[email protected]>
Signed-off-by: ystaticy <[email protected]>
} | ||
|
||
manager := s.GetKeyspaceManager() | ||
keyspaces, err := manager.LoadRangeKeyspace(request.StartId, int(request.Limit)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How often will this interface be called, and will it cause additional performance issues if all keyspace is loaded from etcd each time? How about using watch loop?
/merge |
@lhy1024: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 0bd4030
|
@ystaticy: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #6733
What is changed and how does it work?
Check List
Tests
Code changes
Release note